package xyz.molzhao.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import xyz.molzhao.crypt.CryptField;;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author 11
 * @since 2021-08-05
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机
     */
    @CryptField
    private String mobile;

    /**
     * 身份证
     */
    @CryptField
    private String idCard;
}
